package xyz.taichu.EIf.Client;

import xyz.taichu.EIf.Command.Command;
import xyz.taichu.EIf.Command.ImgCommand;
import xyz.taichu.EIf.Command.KeyboardCommand;
import xyz.taichu.EIf.Command.MouseCommand;
import xyz.taichu.EIf.Invoker.Invoker;
import xyz.taichu.EIf.Receiver.SceneReceiver;

public class Client
{
    public static void main(String[] args)
    {
        /*接受者*/
        SceneReceiver receiver=new SceneReceiver();

        /*命令对象*/
        ImgCommand imgCommand=new ImgCommand(receiver);
        Command MouseCommand=new MouseCommand(receiver);
        Command KeyCommand=new KeyboardCommand(receiver);

        Invoker invoker=new Invoker();
        invoker.setImgCommand(imgCommand);

        invoker.img();
    }
}
